﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace blacksoft.Models
{
    public class Xperfil
    {
        
        public int IDPerfil { get; set; }
        [Required]
        [StringLength(20)]
        [Display(Name = "Nombre del Perfil")]
        [RegularExpression(@"^[a-zA-Z0-9]*$", ErrorMessage = "Solo se permiten caracteres alfanuméricos para este campo")]
        public string Nombre { get; set; }
        [Required]
        [StringLength(49)]
        [Display(Name = "Detalle")]
        [RegularExpression(@"^[0-9A-Za-z ]+$", ErrorMessage = "Solo se permiten caracteres alfanuméricos en este campo")]
        public string Descripcion { get; set; }
        public Boolean Administracion { get; set; }
        public Boolean Seguridad { get; set; }
        public Boolean Ventas { get; set; }
        public Boolean Compras { get; set; }
        public Boolean Global { get; set; }

        
    }
}